package com.hhkj.study.admin.user.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonIgnore;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.util.Date;

/**
*
* @author SERVER
* @since 2024-09-06
*/
@TableName(value = "x_user_exercise")
@EqualsAndHashCode(callSuper = true)
@Data
public class UserExercise extends UserStudyBase {

	/**
	 * 用户id,x_user表中id
	*/
	private Long userId;
	/**
	 * 题库id,关联x_resource_question_bank表中id
	*/
	private Long bankId;

	/**
	 * 题库类型
	 */
	private Long bankType;

	/**
	 * 子订单id
	 */
	private Long orderItemId;

	/**
	 * 课程id
	 */
	private Long courseId;

	/**
	 * 开始学习时间
	 */
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
	private Date startStudyTime;
	/**
	 * 结束学习时间
	 */
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
	private Date endStudyTime;

	/**
	 * 状态：0未学习，1已完成
	 */
	private Integer exerciseStatus;
	/**
	 * 做对数量
	*/
	private Integer correctCount;
	/**
	 * 做题数量
	*/
	private Integer exerciseCount;
	/**
	 * 题目总数
	 */
	private Integer questionCount;
	/**
	 * 关联建培圈培训练习表id
	*/
	private Long assoTrainId;
}